package com.item.springsecurity.singleton;

import java.util.Date;

/**
 * _______                             __________
 * \      \   _______  __ ___________  \______   \__ __  ____
 * /   |   \_/ __ \  \/ // __ \_  __ \  |    |  _/  |  \/ ___\
 * /    |    \  ___/\   /\  ___/|  | \/  |    |   \  |  / /_/  >
 * \____|__  /\___  >\_/  \___  >__|     |______  /____/\___  /
 * \/     \/          \/                \/     /_____/
 *
 * @Auther: wangdong
 * @Description: TODO
 * @Date: 2019/4/25 14:29
 * @Version 1.0
 */
public class test {

    public static void main(String[] args) {
        test t = new test();
        t.test1();
        t.test2();

        AdminSingleton adminSingleton =  AdminSingleton.getAdminSingleton();
        System.out.println(adminSingleton.toString());

    }

    public void test1(){
      AdminSingleton a1 = AdminSingleton.getAdminSingleton();
      a1.setName("王冬");
    }

    public void test2(){
        AdminSingleton a2 = AdminSingleton.getAdminSingleton();
        a2.setCreateDate(new Date().getTime());

    }
}
